home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1298.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.7 KB  |  203 lines

  1. 61
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. RunProgram 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baRunProgram runs an external application and can optionally wait until the other 
  20. --- RECORDSEPARATOR ---
  21. program quits before continuing.
  22. --- RECORDSEPARATOR ---
  23.  
  24. --- RECORDSEPARATOR ---
  25. Usage:
  26. --- RECORDSEPARATOR ---
  27.  
  28. --- RECORDSEPARATOR ---
  29. Result = baRunProgram( Program , State,  Wait )
  30. --- RECORDSEPARATOR ---
  31.  
  32. --- RECORDSEPARATOR ---
  33. Arguments:
  34. --- RECORDSEPARATOR ---
  35.  
  36. --- RECORDSEPARATOR ---
  37. String, String, Integer. 
  38. --- RECORDSEPARATOR ---
  39. Program is the name of the program to run. 
  40. --- RECORDSEPARATOR ---
  41. State is how the program is to appear. Can be one of the following: 
  42. --- RECORDSEPARATOR ---
  43. Can be one of these:
  44. --- RECORDSEPARATOR ---
  45.  
  46. --- RECORDSEPARATOR ---
  47. Windows
  48. --- RECORDSEPARATOR ---
  49.  
  50. --- RECORDSEPARATOR ---
  51. "Normal" 
  52. --- RECORDSEPARATOR ---
  53. shows in its usual state. 
  54. --- RECORDSEPARATOR ---
  55. "Hidden" 
  56. --- RECORDSEPARATOR ---
  57. is not visible. 
  58. --- RECORDSEPARATOR ---
  59. "Maximised" 
  60. --- RECORDSEPARATOR ---
  61. shows as a maximised window. 
  62. --- RECORDSEPARATOR ---
  63. "Minimised" 
  64. --- RECORDSEPARATOR ---
  65. shows as an minimised icon.
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Macintosh
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. The State argument is ignored, 
  74. --- RECORDSEPARATOR ---
  75. Wait determines whether the Director or Authorware program continues, or if it 
  76. --- RECORDSEPARATOR ---
  77. waits for the external program to finish before continuing. Can be either true or 
  78. --- RECORDSEPARATOR ---
  79. false.
  80. --- RECORDSEPARATOR ---
  81.  
  82. --- RECORDSEPARATOR ---
  83. Returns:
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. Integer. 
  88. --- RECORDSEPARATOR ---
  89. If successful returns a meaningless number greater than 31. 
  90. --- RECORDSEPARATOR ---
  91. If the return is less than 32, then an error occurred. On
  92. --- RECORDSEPARATOR ---
  93.  Windows
  94. --- RECORDSEPARATOR ---
  95. , some possible 
  96. --- RECORDSEPARATOR ---
  97. error numbers are listed here. 
  98. --- RECORDSEPARATOR ---
  99. --- RECORDSEPARATOR ---
  100. System was out of memory, executable file was corrupt, or relocations were invalid. 
  101. --- RECORDSEPARATOR ---
  102. --- RECORDSEPARATOR ---
  103. Unspecified error. 
  104. --- RECORDSEPARATOR ---
  105. --- RECORDSEPARATOR ---
  106. File was not found. 
  107. --- RECORDSEPARATOR ---
  108. --- RECORDSEPARATOR ---
  109. Path was not found. 
  110. --- RECORDSEPARATOR ---
  111. --- RECORDSEPARATOR ---
  112. Attempt was made to dynamically link to a task, or there was a sharing or network-protection 
  113. --- RECORDSEPARATOR ---
  114. error. 
  115. --- RECORDSEPARATOR ---
  116. --- RECORDSEPARATOR ---
  117. Library required separate data segments for each task. 
  118. --- RECORDSEPARATOR ---
  119. --- RECORDSEPARATOR ---
  120. There was insufficient memory to start the application. 
  121. --- RECORDSEPARATOR ---
  122. 10 
  123. --- RECORDSEPARATOR ---
  124. Windows version was incorrect. 
  125. --- RECORDSEPARATOR ---
  126. 11 
  127. --- RECORDSEPARATOR ---
  128. Executable file was invalid. Either it was not a Windows application or there was an error in 
  129. --- RECORDSEPARATOR ---
  130. the .EXE image. 
  131. --- RECORDSEPARATOR ---
  132. 12 
  133. --- RECORDSEPARATOR ---
  134. Application was designed for a different operating system. 
  135. --- RECORDSEPARATOR ---
  136. 13 
  137. --- RECORDSEPARATOR ---
  138. Application was designed for MS-DOS 4.0. 
  139. --- RECORDSEPARATOR ---
  140. 14 
  141. --- RECORDSEPARATOR ---
  142. Type of executable file was unknown. 
  143. --- RECORDSEPARATOR ---
  144. 15 
  145. --- RECORDSEPARATOR ---
  146. Attempt was made to load a real
  147. --- RECORDSEPARATOR ---
  148. -mode application (developed for an earlier version of 
  149. --- RECORDSEPARATOR ---
  150. Windows). 
  151. --- RECORDSEPARATOR ---
  152. 16 
  153. --- RECORDSEPARATOR ---
  154. Attempt was made to load a second instance of an executable file containing multiple data 
  155. --- RECORDSEPARATOR ---
  156. segments that were not marked read-only. 
  157. --- RECORDSEPARATOR ---
  158. 19 
  159. --- RECORDSEPARATOR ---
  160. Attempt was made to load a compressed executable file. The file must be decompressed 
  161. --- RECORDSEPARATOR ---
  162. before it can be loaded. 
  163. --- RECORDSEPARATOR ---
  164. 20 
  165. --- RECORDSEPARATOR ---
  166. Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application 
  167. --- RECORDSEPARATOR ---
  168. was corrupt. 
  169. --- RECORDSEPARATOR ---
  170. 21 
  171. --- RECORDSEPARATOR ---
  172. Application requires 32-bit extensions. 
  173. --- RECORDSEPARATOR ---
  174. On
  175. --- RECORDSEPARATOR ---
  176.  Macintosh
  177. --- RECORDSEPARATOR ---
  178. , an error always returns 0.
  179. --- RECORDSEPARATOR ---
  180.  
  181. --- RECORDSEPARATOR ---
  182. Examples:
  183. --- RECORDSEPARATOR ---
  184.  
  185. --- RECORDSEPARATOR ---
  186. Director: 
  187. --- RECORDSEPARATOR ---
  188. set OK = baRunProgram( "Notepad.exe", "maximised", false ) 
  189. --- RECORDSEPARATOR ---
  190. Authorware: 
  191. --- RECORDSEPARATOR ---
  192. OK := baRunProgram( "Notepad.exe", "maximised", false )
  193. --- RECORDSEPARATOR ---
  194.  
  195. --- RECORDSEPARATOR ---
  196. (continued next page)